package org.p2psimulator.entity.protocol.messages.chord;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

public class FindSucessor extends Message {


	private Id referredId;

	public Id getReferredId() {
		return referredId;
	}

	public void setReferredId(Id sucessorRequested) {
		this.referredId = sucessorRequested;
	}

	public FindSucessor(Id origin, Id destination, int transactionId, BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);

	}


	@Override
	public MessageTypes getMessageType() {

		return MessageTypes.CHORD_FINDSUCESSOR;
	}

	@Override
	public String getName() {
		return MessageTypes.CHORD_FINDSUCESSOR.getName();
	}

}
